package cate.game.play.buff.h;

import cate.game.play.buff.BuffHandler;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.ActionCtx;
import cate.game.play.skill.passive.hero.英雄觉醒PH;

/**
 * 每回合降低目标25%觉醒值
 */
public class 寂灭BH extends BuffHandler {

	private double 减少值;

	//减少值=25
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		减少值 = args.getDouble("减少值", 0d);
	}


	@Override
	public void onRoundEnd(ActionCtx action) {
		buff.owner.skill.addAwakenEnergy(action, -减少值);
	}
}
